According to the sliding filament theory:
The actin filaments slide away from A-band resulting in shortening of sarcomere.
Actin and myosin filaments slide over each other to increase the length of the sarcomere.
Length of A-band does not change
I-band increases in length.