1D general slice sampler that takes a generator