added autoplay option for video files in gallery