San Francisco's 5-2 win over Philadelphia, coupled with the Dodgers' fourth loss in five games helped the Giants gain some ground in the NL West.