foldable panel expanding horizontally

Has anyone implemented a foldable panel that expand horizontally (i.e.
on the side) instead of vertically?
thanks a lot.