code cleanup +  manage meta fields for each gallery