scale rect up and down