Cut the rope bit longer than you think you need. Tie off the ends with a double fisherman knot. Leave one end a bit longer than the other and secure it to the with a simple fisherman knot (the small knot to the right in the picture). This Grants you a little bit of slack if needed.