I found the problem. I have missed to add sm-veritcal class in main html tag. I had these classes “sm sm-clean sm-clean-vertical”. When I replaced those with these classes “sm sm-clean sm-vertical sm-clean-vertical” then it started working fine.
Thanks for all your help.