found solution to gif problem. Attempt 1