working animated gif with swi