resolve slideshow flickering in safari