Check your memory utilization on the Ads ... increase the amount of memory resources to the server and increase the swap file for paging. I bet both are too small to handle the gifs