Refactor community container layout