DLO: Dynamic Layer Operation for Efficient Vertical Scaling of LLMs