The number of displaced Gazans has almost doubled in the past 24 hours, hitting 40,000 people since Israel began a major ground operation, a UN agency said on Friday.