Constraining cosmology with shear peak statistics: tomographic analysis