Note that the text in the panels also slides a bit. This is because jquery has to animate not only the element height, but also the padding, border, and margin. Else it would have to jump at the end of the close animation.
In some cases this is not what you want, or it just doesn't look nice. If that is the case then you can solve this by adding a div around the panel you want to slide, make sure that this div has a height that is equal to the outerheight of the panel (so panel height plus padding, border, margin), and then make jquery slide that div instead of the panel.
Now jquery doesn't have any padding, border, or margin to animate, just a height, so the text will stay firmly on its place during the animation.