Clustering tomography : measuring cosmological distances through angular clustering in thin redshift shells