refactor bootstrap grid layout