Fixed bug in user profile, optimized galleries