Fix slide show for firefox