a few gallery fixes