fix slideshow and index for mobile