gallery fixes