If the underlay is larger than your rug, you can simply cut off the excess with scissors, leaving a 5-10 cm gap from the edges of the rug. Underlay is particularly useful for Kilim and Mushwani rugs which are relatively lightweight and can slip on smooth floors.
eBay