How to collapse separate panes?