css fixes, html generation

* fixed some inefficient properties in css
* html for the slider is now generated in jquery