initialize css for galleries