Might work, but it seems like all of the mattresses would have to be the same size, and it could be easily toppled if you rolled over in your sleep (or whatever) and bumped into a side. Maybe a lean-to type thing, with the upper end on a couple of nails in the wall or something, and a heavy chair to keep the floor end from sliding. Less headroom, but more stable, and less airspace to heat...
_________________________
OBG