Adds and edits css to galleries