Fixed sliding-window.sh