If it is still unclear you should really check out some tutorials on this topic.
Like the one ptrblck suggested:



 ptrblck:

The Convolution arithmetic tutorial is a very good website to learn more about how convolution layers perform the window sliding.


Or check out this very popular lecture 83 from Stanford University