If the pack is generally moving at an even pace (not climbing or descending), a general technique to keep with the pack that often works well is this:
From In The Pack: downshift, but keep your RPMs high, to the point that you are slowly making your way through the pack towards the front. Because of the draft, you can be moving forward in a lower gear while putting out a lot less wattage than the people on the front. What you’ll find is that other riders from the middle of the pack will also be hitting the front. But you don’t want to be on the front, you want to be a rank or two back So you want to drop back. But not too far back or you’ll get shot out the back. However, when you hit the front, you’re still in that easier gear and benefiting from drafting. So…when you hit the front, or slightly before you hit the front, shift to a higher gear, and starting putting in some more watts. Not enough that you go off the front–but amp it up a little. What you’ll find is that you start sliding back into the pack again…even though your own wattage is up a little. Because those people behind are drafting and moving forward past you. Eventually, your higher wattage will combine with the draft you’re now getting again, and your backwards movement will slow down. When that happens…shift down again to an easier gear. You’ll start to slide forward again. Rinse and repeat.
The overall effect is like there’s a delay happening in the bunch when you change your own wattage.
So the summary is:
Lower (easier) gear, higher RPM but keep the wattage low enough so you are just moving forward in the pack.
When you hit the front, shift to a higher gear, slightly increase wattage. Do it right and you’ll start to slip backwards, but not very fast.
When you stop slipping backwards, shift to an easier gear and spin faster again. Do it right, you’ll start to slip forwards again.
Repeat.
Importantly, downshift before or just as you hit the front. And shift up before or just as your backwards movement stops. If you do it right, you can keep your power changes pretty small, and avoid having to dramatically increase or decrease power. If you increase power too much when you’re in the back of the bunch, you’ll risk shooting out the front only to be reeled back (wasted effort). If you cut power too much when you’re at the front, you risk being shot out the back and needing to pour on the power to catch back up. So, paradoxically, you end up reducing power when you’re at the back, very slightly, and increasing power when you hit the front, very slightly
I’m no racing mastermind, but this is a general way you can work on bunch placement.