On the dependence of the avalanche angle on the granular layer thickness