You are getting confused between the schematic and PCB layout.
Schematic usually has positive at the top and negative at the bottom, mainly for ease of interpretation. When it comes time to design the PCB, you can place your voltage anywhere, your components anywhere and in any orientation.
Keep your optocoupler on the top side with the rest of the components, just ensure the traces between components connect to each other correctly.