Both midcap and smallcap indices decline around 2%