Slopes of Kantorovich potentials and existence of optimal transport maps in metric measure spaces