Tech sector leads S&P 500 to slight gain | Sharefundss