In resource leveling, slack, or float, is used to alleviate resource overallocation by delaying tasks within their available slack period. This means tasks can be postponed beyond their earliest start (ES) dates but no later than their latest finish (LF) dates, ensuring they remain within their allowable time frames without impacting the overall project timeline.