Superconducting slab in an antisymmetric magnetic field: Vortex–antivortex dynamics