moved php from script section in index

added setInitialHeight method to plugin to properly set height of slider container onload

removed requirement of image preloading