Red Wings snap 7-game skid with 5-1 win