adjust subview frame in expandFrame