change layout algorithm to center first item