Assign slice index