more gallery fixes