update css for gallery