We consider discrete kinetic models of a gas moving in a small gap with thickness h. Under an appropriate scaling of the variables, we introduce a formal series expansion to study the limit h --> 0. As a necessary condition for the validity of the expansion we derive a nonlinear diffusion equation.