resize elements on significant changes

fix #46