Hopefully fixing overflow issues on photos tab

#1195