Avoid photo gallery autoplay