add pagination to public images widget