Mobile gallery fix