Tryings for creating photoe gallery in PHP