added scroll left/right functionality to image/video gallery