Gallery and slideshow working