Added option for custom next/prev classes

Add function for custom next field