updating height for preview pane