Adjust height of panes