Measure the dimensions of the cabinet side. Mark up your panel with those dimensions to see how much you need to trim. If you do need to trim the panel, use a plane to trim the panel to size. Trim from the back and bottom edges so it will be hidden when the panel is installed.