fix slidingWindow example in readme