go to pages when thumbnails are clicked