Refactoring get_slots_week and get_slots_week_as_dict