Bug fix #1757614 by Manuel Garcia, reported by medrupalfan. Previous Next buttons should not appear with 4 images