resize mryhod