If you have multiple stables of one animal species, you have to possibility to reallocate the animals from one stable into another.
It is necessary that the stable has been expanded accordingly in order to accommodate enough animals. Also, make sure that you don't have any productions running in the stables affected.