Global config of slide switching
ngHack added. Allows reuseable code and the use of html files to do code samples.