add setSize method and animate effect

now you can setSize region size by setSize method with animate effect