Goal: To attach wooden slats together and ensure that they're flush, you can

Which of the following methods is more reasonable for accomplishing this goal?
Glue them in place