linking sliding panel to clicked item via database