upated for better support of concatenations, fixed bugs in LSTM forward operation not being sliced every time