fixed slideshow lag and gap