Changed calculateSizes() function

calculateSizes() function now auto-updates the slider item on window resize.