fix gallery on mobile