Fixed slider initialisation bug

Previously, when accessing the "My Profile" page from the timetable, the page would hang if the slider wasn't properly initialised.