Item stacking

can you do something about item auto stacking…like when you open a chest the gems automaticaly stacks or when you open teddy bears the metals automaticaly stacks?