Moved slider init code to page