Adding slice sampling to document