fix MovingWindow

- slide counter were increment also if moving window was disabled
Merge pull request #451 from psychocoderHPC/fix-MovingWindow

Fix moving window