Working on resizing gallery popup