fixed swapping thumbnails with main view