Tighten up gallery layout

Closes #149