Restructured Thumbnail Markup

Removed the intermediate 'tab' divs between the gallery and thumbnails
to remove the need for manipulating markup when passing custom rows and
columns to the gallery() function. Restructured the pagination as a
result.