Fix prev next image gallery