Optimize panel placement