How to prevent stall on servo when returning to position 0

Since I'm kinda new to the servo controlling portion of Arduino, how would you gradually increase the PWM pulse? if the code provided above is based on position? is there a change I would need to make in order to control it more gradually?