$(document).on("mouseleave", ".unfollow-button", function(){
      $(this).hide();
      $(this).siblings(".following-button").show();
    });