Slides issue

Slides issue

Hi folks:
 
I don't know if anyone out there can give me some advice about a slides issue that I'm having.
 
Basically the slide shuts perfectly, but on opening the hidden paragraph/table or other the slide opens well past the requred position and then suddenly snaps back into the correct position.
 
I am using a simple function:
  1. function init(){
     for(var i=0; i<10; i++){
      $('#index'+i).slideUp('slow');
      $('#sub'+i).slideUp('slow');
     }
    }





  2. function slide(num){
     $('#index'+num).slideToggle('slow'); 
    }


  3. function subOpen(num){
     $('#sub'+num).slideToggle('slow'); 
    }

and then in the HTML the slide is called by
 
  1. <a href='#null' onClick='slide(1)'>Slide link</a>
            1. any ideas?