Fix bug edit gallery in home page