refactor sliceUntilNow