Add resize methode to Item.prototype