fixed to allow percentages as positions. now mobile-friendly-ish