refcount++ for both layer `i` and `i-1`