removing empty panes