Updated display size of html element