Regulating the thickness of the coating