As in Gonzalez-Nuevo et al. 2017 and Bonavera et al. 2019, the high-z sub-millimetre galaxies can be used as background sample for gravitational lensing studies thanks to their magnification bias. In particular, as in Bonavera et al. 2020 the magnification bias can be exploited in order to constrain the free parameters of a Halo Occupation Distribution (HOD) model and some of the main cosmological parameters. In this work the magnification bias has been evaluated as cosmological tool in a tomographic set up. The cross-correlation function (CCF) data have been used to jointly constrain the astrophysical parameters Mmin, M1 and α in each one of the selected redshift bins and the ΩM, σ8, and H0 cosmological ones (ΛCDM). Moreover, we explore the possible time evolution of the dark energy density introducing also the ω0,ωa parameters in the joint analysis (ω0CDM and ω0ωaCDM). The CCF has been measured between a foreground spectroscopic sample of GAMA galaxies that has been divided into four redshift bins (0.1-0.2, 0.2-0.3, 0.3-0.5 and 0.5-0.8) and a sample of H-ATLAS galaxies with photometric redshifts >1.2. The CCF is modelled using a description that depends on HOD and cosmological parameters that are estimated with MCMC in different cases. For the ΛCDM model, the analysis yields a maximum posterior value at 0.26 with [0.17,0.41] 68\% C.I. for ΩM and at 0.87 with [0.75,1] 68\% C.I. for σ8. With our current results H0 is not yet constrained. With the ω0CDM model, the constraints on ΩM and σ8 are similar, but we found a maximum posterior value for ω0 at -1 with [−1.56,−0.47] 68\% C.I. In the ω0ωaCDM model, the results are -1.09 with [−1.72,−0.66] 68\% C.I. for ω0 and -0.19 with [−1.88,1.48] 68\% C.I. for ωa.