Added slider animation, code cleanup.