sliding window at half minimum window size