improved sliding window figures