You can group horses for Trackwork via the Schedule > Work screen.
1. Select the horses you want to group by clicking on the circular button next to their name
2. Click the Move to button and a drop down list appears. Select the group you wish to move the Horses into.
After you Group horses, the page will reload where you can see your horses grouped for their Work.