optimize select layout for panes