gallery field cleanup