To increase the duration of an animated GIF, first, click on the GIF on the canvas
In the Settings panel, look for Loops

Enter or drag the slider to the right to increase the loop


You can set only a maximum of 20 loops. 


Another way to increase the length is to click on the GIF and click Duplicate.


Keep duplicating until you reach the right length needed.