Resizing model pane