The taskbar will only show thumbnail previews of so many open windows for an app before the threshold is reached, and will then afterwards automatically show a stacked list of the open windows.
Interestingly, Windows 11 plays a neat animation when you hover the cursor over the Task View button while app thumbnails open without any fancy effects. This odd omission is finally getting ...