fixing firefox bugs in slideshow