Then use a flag variable.Make it as true while animating.After completing the animation make it as false.
EXAMPLE CODE:
$(document).ready(function() {
$("#next").click(function(){
if(flag == false)
next_slide()}
);
});
This is not the exact code.Please do some changes like declare variable first...etc