Fixing minor issue on calculating individual slide width. Realized that I need to do it before I set width on slider container incase css width for each slide is 100%