Galle: Nov 19, 2012
New Zealand had collapsed to 96 for 8 in their second innings at lunch on the third day after failing to cope with Herath's left-arm spin.
The tourists, trailing by 26 on first innings, were just 70 runs ahead with two wickets in hand. They lost seven wickets in the morning session for 61 runs after resuming on 35 for 1.
The Sri Lankan spinner has far taken five wickets for 36 off 14 overs.
Fast bowler Nuwan Kulasekara did the early damage with two wickets in his opening three overs before Herath, who took one wicket on Sunday, struck four times in five overs to have New Zealand reeling at 79 for 7.
Guptill fell on his overnight score of 13, while Kane Williamson (10) added just one run in the morning.
Fast bowler Tim Southee took four wickets and off-spinner Jeetan Patel three for New Zealand.
Brief Scores: New Zealand 221 & 96 for 8 (Daniel Flynn 20, Ross Taylor 18; Rangana Herath 5 for 36, Nuwan Kulasekara 2 for 28) lead Sri Lanka 247 (Mahela Jayawardene 91, Angelo Mathews 79; Tim Southee 4 for 46) by 70 runs.