adjusted js to send slide.id, updated controllers to read 'slide_id' in post