add layout snapshot in single thread mode