If your whoopie pies spread too much, you either had too much liquid in the cake recipe, or the batter wasn't cold before you baked it.