Numerical estimate of the viscous damping of capillary-gravity waves: A macroscopic depth-dependent slip-length model