How to design solar panels in layers