Code simplification and cleanup

Replace some custom code by sklearn.utils.gen_even_slices