generate gif in increasing order