i saw a cool video once about a bed that had rails or rollers on the floor. When you pulled it away from the wall, the bed was there. During daytime, you pushed it back - the bed folded up against the wall, and the other side became a desk and shelving unit.