use jquery function animate to realize carousel effect