Hamilton and Mercedes shift from fourth to fifth