add function btn for image gallery