It is recommended to keep the rebar in the middle of the slab and not at the top or bottom. The specific distance from the edge of the concrete may vary depending on the project and local building codes. It is important to consult professional guidelines, such as those provided by the American Concrete Institute (ACI), to ensure proper rebar placement.