Hide/show preview pane and handle binary files