attempt to fix slideshow initialization