Electron oscillations in a plasma slab