Fixed error

Needed another closing paren on the gallery if condition.