css tidy up, added logic to edit a gallery