Django carousal format

I am trying to import my projectslist in my page everthing is going good but

Problems
How to show my 50 product list in row of bootstrap that contain 4 item by calculations it make 13 slides but i can not figure out how the for loop is apply on it
Any suggestion that will help me
Thanks for giving Your valuable time