The Use of Slices in the LMS and the Method of Density Slices: Foundation and Comparison