Mental Model
A sliding window moves over the array to look at a small part at a time, updating as it goes without starting over.
Analogy: Imagine looking through a small window on a long fence, moving the window step by step to see different parts without lifting it off the fence.
Array: [1] [2] [3] [4] [5] [6] [7]
Window size 3:
[1] [2] [3] ↑window
Then slide right:
[2] [3] [4] ↑window
Then slide right:
[3] [4] [5] ↑window