fixed bug in slicing parameters