The pharmacy chain is opening stores that are about the half the size of its traditional layout, ditching parts of the store that has sold snacks and other consumer staples.