Adaptive interactions slider with different number of items

Hi there! I’m trying to implement adaptive slider with variative number of items.

Let’s say I have 10 fixed-size images in a row. They should slide from the right to the left smoothly like a row (not one by one like in casual slider). The width of the DIV is varies depending on the page size. So, it could show at once 1 to n numbers of items depend on its size. At the end of the raw images from beginning should be shown. Its mean visible part of the row should be [9, 10, 1, 2…]. How possible to implement this kind of slider?