Texturing landscapes according to slopes is a challenge by itself if you are not aware of all the subtleties lying deeply within Blender. Of course, it might sound difficult even with the following guidelines ; if so, you might be interested in reading my tutorial about Using stencils with Blender.