add automatic resize script