Device for the width measurement for classifying stone layers