We have these for our kids in our bunks. They swing down to make it easy to get them in the bunks, then they have rails that go under the mattress to keep it from flipping down. They make a couple different sizes, depending upon how long you want it.