The behavior of animals connected in the form of this horse of mass animals is known as the heading. It is a social group of some animals of a single species in a herd, either wild or domestic.
This specially demonstrates this behavior classic for pasture. Its word swarm usually applies to mammals.
image source https://cdn.pixabay.com/