Adding sliceUp function and test for it. Improving sliceFromRule