A livestock gate includes a plurality of retractable horizontal members to create a variable height opening in the gate. The variable height opening allows animals below a particular height to pass through while restricting larger animals. While weaning, young animals are permitted to pass through the variable height opening to reach feed while cows are excluded to prevent nursing and competition from the larger animals.