I assume that you want to slide it back up if its down?
maybe you can check if the element is visible by using

if($("Element").is(":visible"))
//SlideUp
else
//SlideDown