Can Few-shot Work in Long-Context? Recycling the Context to Generate Demonstrations