sliding window (ENABLE_SLIDING_WINDOW)

experimental inclusion of sliding window (ENABLE_SLIDING_WINDOW)