make laser beam have a max length