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...