Slow episodic shear of granular materials regulated by dilatant strengthening