Target slashes 500 jobs as retailer seeks to invest in its stores