What do you do if you didn't get the library slip on astro knights island?

Go back and get it.

Take the gold coin from the fountain, and pay your admission to the museum. In the stack of books to the right is the Library Slip.