Added a preloader class and added code to animate Slate