update height of sticky element in case of dynamic content

I have sticky tabs that have different height, and when I switch beetwen them I call .sticky('update') and it doesn't work properly. So I fixed this.