Dynamics of grains falling on a sloping granular medium: application to the evolution of a talus