change visibleRect's size in prepareDynamicsLayout method