added slice checker