reducing resize bugs in slideshow