changed checking for NULL a bit

the code below clearly assumes that slide should never be NULL,
so the check is now done via g_return_if_fail