I don't think GarageBand supports time stretching or pitching, except for Apple Loops that you've obtained or that have been converted from software instruments.
Any sample you add to the library yourself in GarageBand is saved as a "one-shot" sample, which is not pitchable.
In Logic Express and Logic Pro, time stretching is as simple as Option-dragging the end of an audio region.