Linear stability of a growing or collapsing bubble in slightly viscous liquid