You have to prevent the default action of the anchor, otherwise it will just redirect
$(document).ready(function(){
$("#button").on('click', function(e){
e.preventDefault();
$(".contenthere").slideToggle("slow");
$('.contenthere').load('preview-print.php?pid=<?php echo $product_id;?>');
});
});