Effect of anisotropy on small magnetic clusters