Update gallery classes.