trying to get slice to work