Fix slidepanel in case transitionend event is not reliable