more tweaks to galleryformatter