Boundary layer study of a nonlinear parabolic equation with a small parameter