All the gallery work so far (sidebars, pagination, UI tweaks etc)