In a framed setting like you are describing, you loose the sway.
Kinda like what you’re saying is it’ll be a “hanging” cot.
http://https://www.homedepot.com/pep...E&gclsrc=aw.ds