change svg size dynamically on update