Often he would sit with his nose to the sky, turning his head this way and that way and that as if to check the wind.
The sentence in your text book is right. This way and that literally means "in this manner." Most of the time, the word "that" is left out in a sentence of this kind.
Maybe, others can throw more light on why it is so......
Student or Learner