Using data-* instead of id, create Gallery and Upload object