If you are talking about beam shear (one-way shear) the width for shear strength should correspond to your design width. If you designed your slab based on the column strip width for instance then that is your width. If you designed your slab on a unit width basis then your width is one unit, say per foot. Slabs more commonly fail in two-way shear than one-way because the width for one-way shear is so large.