On a model of piezoelectric beams including transverse interactions between different layers