US stocks close in mostly positive territory; tech stocks slide