Device used for gripping