Even those tiny servos draw more current than can safely be supplied by the 5V pin of a microcontroller, although I do sometimes do it for a test. So it's not something to be encouraged. Use a separate supply.
And post the code; maybe there's something wrong there too.