dynamic gallery right part done properly but not left part. There are certain issues while selecting an image - which doesn't show up from 2nd time