Fixed element selector so that next page of image gallery actually works