This question has been asked before, but I'm a n00b, and I wasn't sure on how to implement the code

I'm creating a drag & drop game, and I've created a board/area where the draggable items are found, but they're too big to all fit on there in their current size.

So, I'm hoping to make them small on the board, but when you drag them they get to their full size, and dropping them keeps them the full size. Then, if you decide to remove the object, it'll snap back to the board and, of course, get smaller.

I've found this code:

Code:
on(press){
this.w = this._width;
this.h = this._height;
startDrag(this,true)
this._width = this._width - 50
this._height = this._height - 50
}
on(release){
stopDrag();
this._width = this.w;
this._height = this.h;
}
I know how to use it, but I can't figure out what parts go where on my code:

Code:
on(press) {
	_root.mySound2.start(0,0);
startDrag(this);
}
on(release) {
stopDrag();
if (this._droptarget == "/target") {
	_root.mySound.start(0,0);
this._x = _root. target._x;
this._y = _root. target._y;

}
else{
this._x = 423.95;
this._y = 109.45;

}

}
If someone could just simply modify my code to implement the resizing, and explain what parts I need to change to specify the resizing, I will be grateful, thanks in advance