Breathing LED, PWM - Change duration of breath

I would consider using functions explicitly instead of using all of this code. Using functions will also smooth out some of the perceived jumps in brightness as well. Here is an example of a smooth PWM pulse that emulates a breathing LED:

I wrote an entire blog on different breathing functions - where you can explore how to alter different parameters such as length of pulse, etc. Here's the link, if you're interested:

Arduino Breathing LED Functions