Added ability to resize sliding window