fix modal responsive img and add pagination for bootstrap