fixed uploading slideshows and galleries