One of Kalmbach's track planning bookazines had an ingenious Murphy bed* style mechanism to fold up an 8*4 layout, iirc it was a John Armstrong publication and the layout was called Murphy's Creek and Credenza. I cannot post a pic as 1) copyright, and 2) all my train stuff is buried deep in storage until our new house is ready in 6 months(fingers etc crossed). Plenty of YouTube vids show how to diy the mechanism for a bed.
*Bed folds out of a cupboard
Edit . Hate typing on a phone