trim gallery.css file