added settimeout for box slider function