Polarized cw Nd:YAG laser using a slab geometry