The subject in this sentence would be horses because they are the ones doing the trotting. The subject of a sentence is something that is being discusses or described. This sentence is describing what the horses are doing.
So your answer would be horses.
Hope this helps!