implemented aligned slicing