Sometimes, you have to give your pitchers some help.

The Milwaukee Brewers' pitching, which carried the team through a blazing-hot start, was fraying around the edges a bit during a four-game, two-city interleague confrontation with the Minnesota Twins.

Not to worry. With Carlos Gomez, Khris Davis and Jonathan Lucroy blasting timely home runs to account for seven runs, the Brewers pulled out an 8-5 victory Thursday night over the Twins to avoid a three-game skid.

Brewers starter Wily Peralta made it through only five innings, the victim of a pitch count that rose to 101 before he departed. Peralta allowed five hits, three walks and four runs — all coming on a grand slam by Oswaldo Arcia.

Peralta's pitch count soared from the outset, reaching 79 after three innings. He retired the first two batters in the third but issued walks to Brian Dozier and Josh Willingham sandwiched around a single by Joe Mauer, setting the stage for the grand slam by Arcia.

Arcia drove in four runs the previous evening, including a three-run homer, and didn't miss a hanging 2-2 slider from Peralta, crushing it out to right.

Gomez got three of those runs back with one swing of the bat. Ryan Braun and Lucroy singled with no outs, and Gomez blasted a three-run homer to center off Twins starter Kevin Correia. The 412-foot shot was Gomez's 12th homer of the year.

The Brewers were in position to draw even in the fifth when Lyle Overbay led off with a single and moved to third on Braun's one-out hit. But Lucroy grounded into an out at the plate and Gomez bounced out to short, ending that threat.