How to make drop-down menu not close when changing pages ?

How to make drop-down menu not close when changing pages ?

Hi everyone. I'm using jquery to make a drop-down menu on a website i'm wotking on. I'm currently using the following code, and it's all working allright:
  1.         $(document).ready(function(){
  2.             $(".btn_slide").click(function(){
  3.                 $("#sub_categories").slideToggle("slow");
  4.                 $(this).toggleClass("active"); return false;
  5.             });
  6.         });
Inside of this slider menu, i have 4 more options all of them using the same type of slider code.
 The thing is, when i click on one of the options from the drop-down menu, it changes to another page, and the menu closes. How can i make the menu stay open ?

Every div that is used with the sliders have the following css property:

  1. #sub_categories, #tresde, #arquitectura, #design, #web{
  2.     display: none;
  3. }
I think the problem might be here, is there any way i can solve this ?