Take thickness in the constructor