Electromagnetic waves in a nonlinear dispersive slab