Updated

Carey Price knew the barrage of goals had to end — sometime.

And with a little help from his goalposts, the Montreal Canadiens' goalie put a stop to it Thursday night with a solid, 32-save performance in a 3-2 victory over the Tampa Bay Lightning.

"I feel pretty good," said Price, whose team was coming off a season-high three straight regulation defeats in which they gave up a total of 18 goals.

Price, who has been stellar for most of the season, had been pulled from consecutive starts for the first time in his career while letting in 12 goals on only 53 shots, while backup Peter Budaj let in the other six.

"It was a bit of a tough week, obviously, when you get 18 goals scored on you in three games," Price said. "It's tough, but as a professional, you have to keep battling through it.

"I spoke to my dad about it and he said there's no short cut. If there was, someone would have figured it out by now. The only way is to keep working."

Brian Gionta's second goal of the game with 47 seconds left to play was the winner for Montreal, which also got a goal from Alex Galchenyuk in sweeping its three-game season series with the Lightning.

Richard Panik and Vincent Lecavalier had goals for Tampa Bay, which is winless in five and has only one victory in eight games. The Lightning ended a four-game road trip.

Thursday was Montreal's first win since clinching a playoff spot last week and it put them back into first place in the Northeast Division, two points ahead of Boston, which has two games in hand.

The apathy the Habs have shown of late was there at times, but at least they managed to stop the bleeding.

The Canadiens had given up nine goals in the first period of their three previous games, but Price's posts came to his rescue this time as Teddy Purcell, Sami Salo and Lecavalier all hit the iron in a scoreless opening 20 minutes.

Price then made some brilliant saves, including one in the second when he managed to thwart Martin St. Louis from in close.

That got the 21,273 at the Bell Centre, who had been on his back, chanting his name.

"It's tough as a goaltender here," Price said. "It can be nerve-racking, but I've got a lot of experience dealing with this type of situation.

"You just have to take a step back, relax, put in some honest work. Usually bad times don't hang around too long."

Canadiens coach Michel Therrien looked almost as relieved as his goaltender.

"I'm really satisfied and proud of Carey Price," he said. "He bounced back. It was lucky at times, but you need some breaks to win."

Shots were 35-34 in Montreal's favor and Ben Bishop also was solid in goal for the Lightning.

The loss left them 3-5-3 since Jon Cooper replaced Guy Boucher as head coach.

"I haven't been here that long, but that was the best game we've played from start to finish," Cooper said. "I thought we controlled a lot of the play.

"I don't know what the scoring chances were, but I'd have to say we were on the positive end of that. But unfortunately, we're on the negative end of the score. But if you can play consistently the way we did, we're going to win more games than we lose."

Montreal took the lead 4:04 into the second when Galchenyuk was parked at the edge of the crease to slip in a bouncing pass from Brendan Gallagher. It was the rookie's sixth goal in his last eight games.

Gionta then redirected Tomas Plekanec's pass behind Bishop after a turnover at the Tampa Bay blue line at 15:05.

The Lightning took advantage of their first power play when Panik made a deft move to take in Victor Hedman's pass and lift it over Price at 17:36.

Lecavalier tied it 5:07 into the third when Hedman's shot deflected off some skates in front and left a wide opening for the Bolts' captain to score his 10th of the season.

The Lightning took a string of penalties in the third period and the last one cost them when Gionta banged in the winner after Yannick Weber's shot rebounded off the end boards.

"It was a scrambly play and it's nice to capitalize on that, but the best thing is we're getting back to winning ways and getting more confidence," Gionta said. "It's big for our confidence.

"When you lose a few tough games, you lose that little edge, so it's nice to get that back."

Salo left early in the second period with an upper body injury and did not return. Cooper said it did not appear to be serious.

NOTES: Brandon Prust sat out and Michael Ryder returned to the lineup for Montreal. Prust is expected to be back for a home game Saturday against Washington. The Canadiens returned rookie Nathan Beaulieu to AHL Hamilton, as Raphael Diaz is expected to return from a concussion on Saturday. ... Tom Pyatt was scratched for Tampa Bay.