Marlins beat Rays 5-3