Fixing bug in sliding animation where users could spam hovering and make the animation repeat itself