Beds are not always the size they should be. You have to measure to be sure.
I have no experience in trying to put one frame inside another. But the names change even more than the sizes, so maybe you mean a foundation or a box spring or something else.