Not really a whole lot of script there:
$(this).toggleClass("active"); return false;
Can easily be altered, but once again... we do need to see some HTML mark-up and how your divs or whatever are generated. Do they have a class? Are they child elements of others, etc, etc. It does help knowing the structure. For instance, if we're talking about a sibling, rather than a child element, it would be something like:
$("~ *" + this + ":not(visible)").slideToggle("slow"); // not 100% sure about the selector and a bit too late right now to test, so... forgive me if it's not exact.
But this is just a guess without site structure...