added example for hash slice method [ci skip]