Fixing gallery image proportions