Plywood (slats at least) is really not the right choice if alternatives are available.
The flex is far greater than a similarly dimensioned hardwood.
Try using Woodweb's "Sagulator" to calculate an appropriate slat.
https://www.woodbin.com/calcs/sagulator/