Material Layer Change per Terrain Slope

Does anyone know how to keep my cliff rocks to remain horizontal all the way around?