displaying newest 5 photos and photos older than 1 month