Hey @Samarth_Gupta,
Welcome to the community. Please follow the discussion here. You will find out that this discussion discusses your point as well as some other points regarding the LSTM layer size confusion. Let me know if this helps.
Cheers,
Elemento