Distribute stars along z-axis