after a little , he heard the sound of hooves on the road , a horse galloping , and , turning to peer through the trees , caught a glimpse of william thundering past , heading in the direction ian had been taken .