Sri Lanka's openers started their second innings positively and made 54 without loss in the 13 overs they faced.
"If we get a few wickets then we will be in the driving seat, but if we don't get wickets and they play well, then they will be in the driving seat, " Shakib said.
"If a settled team loses one wicket, they can lose two or three wickets". Mushfiqur went past Andy Flower's 56 dismissals in Sri Lanka's second innings.
This lead looked unlikely once Mustafizur and Shakib triggered a collapse in the Sri Lankan innings in the post-lunch session but Karunaratne hung on to score 126 before Perera hit an undefeated 26 off 126 balls. Mustafizur then sent back the last innings centurion Dinesh Chandimal (5) and Dhananjaya de Silva (0) also caught behind while Shakib snared the wickets of Asela Gunaratne (7) and Niroshan Dickwella (5). Skipper Mushfiqur earlier shared a 92-run sixth wicket partnership with Shakib to help revive the tourists' innings after a shaky end to their run chase on day two. Night watchman Taijul Islam departed in the next ball after Herath used another review successfully to obtain a lbw decision in his favour.
Bangladesh took five wickets in the middle session for just 62 runs. The scoring rate on the fifth day in the last five Tests here has been an average of 3.00 runs an over, with a wicket falling every seven overs. "The wicket was set and that perhaps gave us a false sense of security to go for runs instead of seeing off that period".
Harry Kane's Success Has Made It Tough For Vincent Janssen - Mauricio Pochettino
Tottenham Hotspur manager Mauricio Pochettino insists that his side can cope with the loss of Harry Kane to an ankle injury. 14 - Spurs are undefeated in 14 home league games this season.
Riding a valiant century from Dimuth Karunaratne (126), the Lankan lions reached 268 for 8 at close of play, cropping up a lead of 139 runs at the P Sara Oval on Saturday.
In reply to Sri Lanka's 338, Bangladesh scored 467, thus taking a lead of 129 runs, thanks to 116 from Shakib and a 75-run knock from Mosaddek Hossain Saikat.
Mehedi Hasan provided Bangladesh with a much needed breakthrough early on the fourth day as he produced a ripper to account for Upul Tharanga (26) with his first ball of the day.
After the break, the fast bowler ended Karunaratne and Kusal Mendis' 86-run second-wicket stand in the second over as Mendis edged an angular ball outside the off-stump to wicketkeeper Mushfiqur Rahim for 36.
Sri Lanka were reduced to 190-6 at one point but fought back with useful partnerships from the lower order to boost their hopes of a 2-0 win in the two-match series.