some modifications of gallery's page