Made project gallery work on mobile