Remove extra lines and spaces from gallery.inc