enabling photo gallery autoplay option every 5 seconds