Updated sliding_window to use the same functions and formats as the neural network functions.