adjust number of cubes and positions