Ground-state properties of a few-boson system in a one-dimensional hard-wall split potential