merge first frame and main frame