And she began thinking over other children she knew , who might do very well as pigs , and was just saying to herself , ` if one only knew the right way to change them -- ' when she was a little startled by seeing the Cheshire Cat sitting on a bough of a tree a few yards off .