Din rail casing with ventilation slots