Many Spanish airports have a security preparation area, where you can take all the time in the world to sort your belongings into the tray. Once you're done you walk a few steps over and join the queue for the scanner.
It's a lot more relaxed, and also faster - because you don't hold anybody up.