optimal panel positioning