Added pagination support to the gallery view (but in order to do this, I had to removed the possibility of a footerView)