Stocks slid into the close Friday, capping a challenging week for investors that saw the S&P 500 decline in four of five trading sessions.