Move slider setup code from footer.php to functions.php.

Also clean up a fair bit.