Hi Ibrahim,
Nice solution, but I am not sure if it can be used in Andry's scenario
because if Andry wants to have N paginated pages, he would have to
created N pages and N content classes with slightly different display
range.
Also, I noticed that the code provided skips the first page on the
list.
Andry, like Tony said, either do pagination server side via Delivery
Server, php, asp, C# or what other server side code once content is
published to a server.
OR
You can output all the content with a list and use JavaScript/Jquery
to show/hide selected range.
I do have example ready should you need them.
Best,
-Jian