Use viewport (instead of applet) width for calculations

Fix allows to style viewport to be smaller than the slider (for ex. for
keeping direction nav beside slides) and keep the carousel
functionality. Prevents skipping slides...
Merge pull request #722 from danekszy/develop

Use viewport (instead of slider) width for calculations