Set layout after adding each new pane

This will eliminate the pane too small errors.