fix slideshow resize problems