You can only show portal records vertically...
... but you can have a portal that shows only one record and have 8 or so of them across the page each showing the next record in the series... but obviously there is a limit...
... alternatively you could create a repeating field in the student table which calculates the photo from the portal record that matches the repetition number... and display that repeating field horizontally.
You might be able to set up the multiple portals horizontally and have each portal filtered separately by calculations to return the appropriate group.
[ Admittedly, I haven't done the thinking about exactly how those calcs need to be setup, depending on what effects you want to achieve. ]
If you know you want a single row horizontal of not more than 8 items, you can set up 8 portals and, in the portal setup dialog for each, set each to show a single row with you picking the appropriate row number for each of them.