Your pic shows a linear layer that combines the outputs from all timesteps of the LSTM outputs.
Your model takes one input at each timestep, inputs it to the LSTM which calculates hidden_size feature values, the feature values for that timestep only, are then fed into the linear layer which produces a prediction for that timestep. I hope my description is clear enough.