settimeout to toggle map