Fixed bugs and implemented slide.