The solution below is intended to slide down the groupDiv displaying div1 and enough space for
you can put this first thing inside the click event
$(element).css({ "pointer-events":"none"});
$(element).css({ "pointer-events":"auto"});