Updated

Matt Joyce homered, doubled and scored three times, and the Tampa Bay Rays escaped several jams to beat the slumping Miami Marlins 5-1 Friday night.

The Marlins went 0 for 8 with runners in scoring position. They are 1 for 28 in those situations during their homestand, losing all four games while totaling four runs.

Joyce went 2 for 3 with two walks, hiking his on-base percentage to .409. Jose Lobaton had two doubles and scored once.

Five Rays pitchers combined on a seven-hitter while throwing 185 pitches. Former Marlin Burke Badenhop (1-1) came on in the fifth and threw 1 2-3 shutout innings. Fernando Rodney pitched a hitless ninth — the only inning in which the Marlins didn't strand a runner.

Tampa Bay starter Jeremy Hellickson gave up a career-high seven walks and threw 108 pitches in 4 1-3 innings, but he allowed only one run. The Marlins went 0 for 5 against him with runners in scoring position, and he has held batters to a .106 average with runners in scoring position this season, lowest in the majors.

Before the game, Marlins manager Ozzie Guillen said the demotion of outfielder Bryan Petersen to Triple-A served as a warning to several other struggling hitters, but it was more of the same for their dormant offense.

Miami loaded the bases with none out in the third but scored only one run — on a sacrifice fly by Greg Dobbs. Hellickson walked two when he loaded the bases again with two outs in the fourth, but Giancarlo Stanton flied out to end the inning.

Miami stranded 13 runners. Omar Infante had three hits and scored the Marlins' run in the third.

Ricky Nolasco (6-4) allowed three runs in six innings.

The Rays scored the game's first run in the third inning. Joyce hit a bloop double and came home when B.J. Upton singled on an 0-2 pitch.

Tampa Bay scored in the fourth when Lobaton doubled, went to third on a bunt and came home on a two-out infield hit by Will Rhymes.

Joyce hit his 10th homer leading off the fifth to make it 3-1. Ben Zobrist lifted his average above .200 with a run-scoring single in the seventh, and Carlos Pena followed with an RBI single.

NOTES: Hellickson has won one of his past seven starts despite allowing only 13 earned runs. ... Thank goodness for a roof: Lightning was visible through the windows beyond left field during batting practice. ... Hall of Fame football coach Don Shula threw the ceremonial first pitch to Guillen. ... Marlins RF Stanton committed his sixth error, the most among major league outfielders. ... Rays manager Joe Maddon described the Marlins' outfield wall as "Dodge Challenger green circa 1970 — a very desirable color." As for the home run sculpture, he said, "Somebody liked it."