fixing slicing