catalog: move a code block to the place near related code block