Removing element on slideUp and removing some dead code