frontend: add layer height limit