Fixes to slideshow and gallery