fix indentation
implemented slicereverse