disable modal gallery on mobile