adjusting gadget height after image resize