add docs for slidingWindow