Swinging bed