initialize slide function to NULL