apply active class to custom pagination

use parent as element to apply active class if custom pagination is
used