ugh gallery fixes