Galleria prev/next fix