fixes slideshow for firefox and IE