read a slice