rearranged the tabs and thumbnails in gallery