Resizing gallery for portrait on mobile