Attempt at making gallery responsive