serve thumbnails and fix gallery setup