fix for resize triggering auto slideshow