How to allow large 2d sprites be above smaller than them?????

I made a game where sprites move and i want to allow large sprites to be above smaller parts HELP PLEASE.

If you change the size of the sprites with the transform values you can for example:

Vector3 _size = new Vector3(1f, 1f, 1f);
this.transform.localScale = _size;
this.transform.Getcomponent<SpriteRenderer>().orderInLayer = 1 * _size.x;

So that a sprite that has a size of 5, will be in the layer 5, which will be above a sprite with a size 3, with a layer 3 :D!