Cooling device (1) comprising one or more than one rail (14) arranged on the side wall of the body (2) and one or more than one slide (15) that is arranged on the rail (14) and that enables the storage container (4) to be pulled and moved partially or completely out of the body (2). The light source (5) is enabled to switch to the first and second position according to the presence of the storage container (4) in the body (2). A first conductive element (8) and a second conductive element (9) enable the light source (5) to be switched by contacting each other by stretching when the storage container (4) is in place, and enables the first conductive element (8) and the second conductive element (9) to be separated when the storage container (4) is displaced.