shrink mainView on showing thumbnails