Efficient Estimation for Longitudinal Networks via Adaptive Merging