resize func
getting frames for gif