Hides panel with sliding animation.
Removed unused stuff.