Critical problem for finite slabs with sinusoidally space-dependent scattering ratio