dart in and out
[for something moving] to move quickly between two things, or into a number of things, and move away again. On the highway, a small car was darting in and out of the two right lanes of traffic. A small bird darted in and out of the bush, probably going into a nest inside.