This is what I am trying to achieve: I have 3 category of images with different no. of images in each category: Category 1 (5 Images), Category 2 (3 Images) and Category 3 (4 Images).
The images displayed in the Carousel should follow the order: if Button 1 is pressed it gets active and displays all the images of Category 1, if Button 2 then the slider displays the 3 images of Category 2 and the 4 images of Category 3 on pressing button 3. Is it possible through Bootstrap Carousel as I do not want to look for another slider for this purpose.
So, here is my implementation to solve your problem:
http://jsbin.com/qemiki/7/edit
How it works?
The SlideByCategory, which depends on the previous one, accepts an array of categories, with similar structure.