add and rm event layers in some loop