slice file selected based on url param