trying to fix gif display bug