remove type checks in _slice

Related to #319