function M=aniso_2d_slices(stack, num_iter, delta_t, kappa, name)
%smooths the the x-y sliced image
depth=size(stack);
frames=depth(1,3);
for z=1:1:frames   
    s=stack(:,:,z);   
    ad=anisodiff2D(s, num_iter, delta_t, kappa, 2);
    M(:,:,z)=ad;
    disp(strcat(name,num2str(z/frames*100)));
end
end