Tigers snap five-game skid, beat Baltimore