Analytical and numerical treatment of resistive drift instability in a plasma slab