Refactor ExpandAndShrinkCardView to accept different layout wrapping