Remove unused condition in gallery

/cc @gklopper @rich-nguyen