fix box-sizing style for main page gallery